package com.systop.workview.service;
import com.systop.common.pojo.Teacher;
import com.systop.common.util.ResponseResult;
import com.systop.workview.service.impl.Hystric;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "supervise",fallback = Hystric.class)//feign声明名字是supervise的项目
public interface SuperviseClientService {
        //RequestMapping的value是在 feign声明下的接口
        //-------------------teather---------------------
        //login
        @RequestMapping(value = "/superviseLogin",method = RequestMethod.POST)
        ResponseResult superviseLogin1(@RequestParam(value = "tno") String tno, @RequestParam(value = "password") String password);

        //查看全部
        @RequestMapping(value = "/teacherSupList",method = RequestMethod.POST)
        ResponseResult superviselist();

        //添加
        @RequestMapping(value = "/insertSupervice",method = RequestMethod.POST)
        ResponseResult superviseadd(@RequestParam(value = "tno")String tno,@RequestParam(value = "name")String name, @RequestParam(value = "college_name")String college_name, @RequestParam(value = "password")String password,@RequestParam(value = "professional")String professional,@RequestParam(value = "sex")String sex,@RequestParam(value = "phone_url")String phone_url,@RequestParam(value = "type")String type,@RequestParam(value = "remark")String remark);

        //删除
        @RequestMapping(value = "/deleteSupervice",method = RequestMethod.POST)
        ResponseResult supervisedel(@RequestParam(value = "tno") String tno);

        //修改根据tno查
        @RequestMapping(value = "/updataSupervice1",method = RequestMethod.POST)
        ResponseResult updataSupervice1(@RequestParam(value = "tno")String tno );

        //修改
        @RequestMapping(value = "/updataSupervice",method = RequestMethod.POST)
        ResponseResult updataSupervice(@RequestParam(value = "tno")String tno,@RequestParam(value = "name")String name, @RequestParam(value = "college_name")String college_name, @RequestParam(value = "password")String password,@RequestParam(value = "professional")String professional,@RequestParam(value = "sex")String sex,@RequestParam(value = "phone_url")String phone_url,@RequestParam(value = "type")String type,@RequestParam(value = "remark")String remark);

       //----------------------course_library------------------

        //查看全部
        @RequestMapping(value = "/sourse_libraryList",method = RequestMethod.POST)
        ResponseResult sourse_libraryList();

        //修改
        @RequestMapping(value = "/updataCourse_library",method = RequestMethod.POST)
        ResponseResult updataCourse_library(@RequestParam(value = "course_id") String course_id, @RequestParam(value = "course_name") String course_name, @RequestParam(value = "college_name") String college_name, @RequestParam(value = "performance_rule_id") String performance_rule_id, @RequestParam(value = "class_hour") String class_hour, @RequestParam(value = "credit") String credit, @RequestParam(value = "course_group_name") String course_group_name, @RequestParam(value = "introduction") String introduction, @RequestParam(value = "remark") String remark);

        //添加
        @RequestMapping(value = "/insertCourse_library",method = RequestMethod.POST)
        ResponseResult insertCourse_library(@RequestParam(value = "course_id") String course_id, @RequestParam(value = "course_name") String course_name, @RequestParam(value = "college_name") String college_name, @RequestParam(value = "performance_rule_id") String performance_rule_id, @RequestParam(value = "class_hour") String class_hour, @RequestParam(value = "credit") String credit, @RequestParam(value = "course_group_name") String course_group_name, @RequestParam(value = "introduction") String introduction, @RequestParam(value = "remark") String remark);

        //通过id查
        @RequestMapping(value = "/course_libraryIdlist",method = RequestMethod.POST)
        ResponseResult course_libraryIdlist(@RequestParam(value = "course_id") String course_id);

        //删除
        @RequestMapping(value = "/deleteCourse_library",method = RequestMethod.POST)
        ResponseResult deleteCourse_library(@RequestParam(value = "course_id") String course_id);

        //----------------------------排课------------------------
        //修改
        @RequestMapping(value = "/elcourupdate",method = RequestMethod.POST)
        ResponseResult elcourupdate(@RequestParam(value = "elective_course_id") String elective_course_id,@RequestParam(value = "course_id") String course_id,@RequestParam(value = "tno") String tno,@RequestParam(value = "college_name") String college_name, @RequestParam(value = "restricted_grade") String restricted_grade, @RequestParam(value = "time") String time, @RequestParam(value = "know") String know, @RequestParam(value = "place") String place, @RequestParam(value = "max_number") String max_number, @RequestParam(value = "min_number") String min_number, @RequestParam(value = "current_number") String current_number,@RequestParam(value = "remark") String remark);
            //添加
        @RequestMapping(value = "/elcouradd",method = RequestMethod.POST)
        ResponseResult eelcouradd(@RequestParam(value = "course_id") String course_id,@RequestParam(value = "tno") String tno,@RequestParam(value = "college_name") String college_name, @RequestParam(value = "restricted_grade") String restricted_grade, @RequestParam(value = "time") String time, @RequestParam(value = "know") String know, @RequestParam(value = "place") String place, @RequestParam(value = "max_number") String max_number, @RequestParam(value = "min_number") String min_number, @RequestParam(value = "current_number") String current_number,@RequestParam(value = "remark") String remark);//查看全部
        @RequestMapping(value = "/elcourall",method = RequestMethod.POST)
        ResponseResult elcourall();
        //通过id查实体类
        @RequestMapping(value = "/elcourid",method = RequestMethod.POST)
        ResponseResult elcourid(@RequestParam(value = "elective_course_id") String elective_course_id);
        //通过id查list
        @RequestMapping(value = "/elcourid1",method = RequestMethod.POST)
        ResponseResult elcourid1(@RequestParam(value = "elective_course_id") String elective_course_id);
        //通过id删除
        @RequestMapping(value = "/elcourdel",method = RequestMethod.POST)
        ResponseResult elcourdel(@RequestParam(value = "elective_course_id") String elective_course_id);
        //详情查看课程信息
        @RequestMapping(value = "/elcourxiangqing",method = RequestMethod.POST)
        ResponseResult elcourxiangqing(@RequestParam(value = "elective_course_id") String elective_course_id);
        //详情查看课程信息
        @RequestMapping(value = "/elcourtno",method = RequestMethod.POST)
        ResponseResult elcourtno(@RequestParam(value = "tno") String tno);

        //----------------------------成绩----------------------------------

        //添加
        @RequestMapping(value = "/performanceadd",method = RequestMethod.POST)
        ResponseResult performanceadd(@RequestParam(value = "sno") String sno,
                                      @RequestParam(value = "elective_course_id") String elective_course_id,
                                      @RequestParam(value = "tno") String tno,
                                      @RequestParam(value = "performance_rule_id") String performance_rule_id,
                                      @RequestParam(value = "peacetime_performance") String peacetime_performance,
                                      @RequestParam(value = "mid_term_performance") String mid_term_performance,
                                      @RequestParam(value = "final_performance") String final_performance,
                                      @RequestParam(value = "skill_assessment") String skill_assessment,
                                      @RequestParam(value = "total_score") String total_score,
                                      @RequestParam(value = "pass_flag") String pass_flag,
                                      @RequestParam(value = "allow_flag") String allow_flag,
                                      @RequestParam(value = "remark") String remark);
        // 2通过tno查list
        @RequestMapping(value = "/performancetno",method = RequestMethod.POST)
        ResponseResult performancetno(@RequestParam(value = "tno") String tno);

        //3通过成绩id 查list
        @RequestMapping(value = "/performance_id_list",method = RequestMethod.POST)
        ResponseResult performance_id_list(@RequestParam(value = "performance_id") String performance_id);
        //根据id修改
        @RequestMapping(value = "/performanceUp",method = RequestMethod.POST)
        ResponseResult performanceUp(@RequestParam(value = "performance_id") String performance_id,
                                           @RequestParam(value = "sno") String sno,
                                           @RequestParam(value = "elective_course_id") String elective_course_id,
                                           @RequestParam(value = "tno") String tno,
                                           @RequestParam(value = "performance_rule_id") String performance_rule_id,
                                           @RequestParam(value = "peacetime_performance") String peacetime_performance,
                                           @RequestParam(value = "mid_term_performance") String mid_term_performance,
                                           @RequestParam(value = "final_performance") String final_performance,
                                           @RequestParam(value = "skill_assessment") String skill_assessment,
                                           @RequestParam(value = "total_score") String total_score,
                                           @RequestParam(value = "pass_flag") String pass_flag,
                                           @RequestParam(value = "allow_flag") String allow_flag,
                                           @RequestParam(value = "remark") String remark);
        //3-1通过成绩id 查 实体
        @RequestMapping(value = "/performance_id_p",method = RequestMethod.POST)
        ResponseResult performance_id_p(@RequestParam(value = "performance_id") String performance_id);
        //3-2通过排课id查list
        @RequestMapping(value = "/paikeId_tno",method = RequestMethod.POST)
        ResponseResult paikeId_tno(@RequestParam(value = "elective_course_id") String elective_course_id);
        //5通过sno和排课id和状态sno elective_course_id allow_flag
        @RequestMapping(value = "/sno_pkid_allow", method = RequestMethod.POST)
        ResponseResult sno_pkid_allow(@RequestParam(value = "sno") String sno,@RequestParam(value = "elective_course_id") String elective_course_id,@RequestParam(value = "allow_flag") String allow_flag);
        //6通过tno修改 发布成绩
        @RequestMapping(value = "/allow_flagfabu", method = RequestMethod.POST)
        ResponseResult allow_flagfabu(@RequestParam(value = "tno") String tno,@RequestParam(value = "allow_flag") String allow_flag);
        //查询全部 performanceall
        @RequestMapping(value = "/performanceall", method = RequestMethod.POST)
        ResponseResult performanceall();
        // 6通过id删除 performancedel
        @RequestMapping(value = "/performancedel", method = RequestMethod.POST)
        ResponseResult performancedel(@RequestParam(value = "performance_id") String performance_id);

        }
